home *** CD-ROM | disk | FTP | other *** search
/ Freelog 117 / FreelogNo117-OctobreNovembre2013.iso / Programmation / jedit / jedit5.1.0install.exe / {app} / modes / gettext.xml < prev    next >
Extensible Markup Language  |  2013-07-28  |  2KB  |  59 lines

  1. <?xml version="1.0"?>
  2.  
  3. <!DOCTYPE MODE SYSTEM "xmode.dtd">
  4.  
  5. <MODE>
  6. <!--
  7.     ** jEdit edit mode for gettext catalogs (.po/.pot extension)
  8.     ** Use the ConfigurableFoldHandler plugin for optimal
  9.     ** results. =)
  10. -->
  11.     <PROPS>
  12.         <PROPERTY NAME="lineComment" VALUE="# " />
  13.     </PROPS>
  14.     <RULES IGNORE_CASE="TRUE" HIGHLIGHT_DIGITS="TRUE">
  15.         <!-- Comments -->
  16.         <EOL_SPAN TYPE="COMMENT2">#:</EOL_SPAN>
  17.         <EOL_SPAN TYPE="COMMENT1"># </EOL_SPAN>
  18.         <EOL_SPAN TYPE="COMMENT2">#.</EOL_SPAN>
  19.         <EOL_SPAN TYPE="COMMENT2">#~</EOL_SPAN>
  20.  
  21.         <MARK_FOLLOWING TYPE="COMMENT2">#,</MARK_FOLLOWING>
  22.         <MARK_FOLLOWING TYPE="KEYWORD3">%</MARK_FOLLOWING>
  23.         <MARK_FOLLOWING TYPE="KEYWORD3">$</MARK_FOLLOWING>
  24.         <MARK_FOLLOWING TYPE="KEYWORD3">@</MARK_FOLLOWING>
  25.  
  26.         <SPAN TYPE="LITERAL1" DELEGATE="QUOTED" >
  27.             <BEGIN>"</BEGIN>
  28.             <END>"</END>
  29.         </SPAN>
  30.  
  31.         <!-- keywords -->
  32.         <KEYWORDS>
  33.             <KEYWORD1>msgid</KEYWORD1>
  34.             <KEYWORD1>msgid_plural</KEYWORD1>
  35.             <KEYWORD1>msgstr</KEYWORD1>
  36.             <KEYWORD2>fuzzy</KEYWORD2>
  37. <!--        ** Ideally, we'd highlight the next msgstr differently
  38.             ** whenever fuzzy is encountered, but this doesn't seem
  39.             ** to be possible just yet.
  40. -->
  41.             <KEYWORD2>c-format</KEYWORD2>
  42.             <KEYWORD2>no-c-format</KEYWORD2>
  43.         </KEYWORDS>
  44.  
  45.     </RULES>
  46.  
  47.     <RULES SET="QUOTED" DEFAULT="LITERAL1">
  48.         <SPAN TYPE="LITERAL2" NO_LINE_BREAK="TRUE">
  49.             <BEGIN>\"</BEGIN>
  50.             <END>\"</END>
  51.         </SPAN>
  52.  
  53.         <MARK_FOLLOWING TYPE="KEYWORD3">%</MARK_FOLLOWING>
  54.         <MARK_FOLLOWING TYPE="KEYWORD3">$</MARK_FOLLOWING>
  55.         <MARK_FOLLOWING TYPE="KEYWORD3">@</MARK_FOLLOWING>
  56.     </RULES>
  57.  
  58. </MODE>
  59.